.ui-switch {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.88);
  font-size: 1rem;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji,
    segoe ui symbol, noto color emoji;
  position: relative;
  display: inline-block;
  min-width: 3.2rem;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  border-radius: 5rem;
  cursor: pointer;
  user-select: none;
  &-handler {
    width: calc(100% - 4px);
    height: 100%;
    display: flex;
    align-items: center;
    margin: auto;
  }
  &-checked {
    background: #4096ff;
    .ui-switch-inner {
      transform: translateX(1.6rem);
    }
  }
  &-unchecked {
    background-color: rgba(0, 0, 0, 0.45);
    .ui-switch-inner {
      transform: translateX(0);
    }
  }
  &-inner {
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s;
  }
}
